<?php
/* @var $this LibraryController */
/* @var $model Library */

$this->widget('bootstrap.widgets.TbBreadcrumbs',array(
	'links'=>array(
		'Library'=>array('admin'),
		$model->name
	),
));

$this->menu=array(
	array('label'=>'Operations'),
	array('label'=>'Add to Library', 'icon'=>'star', 'url'=>array('create')),
	array('label'=>'View Entry', 'icon'=>'eye-open', 'url'=>'#', 'active'=>true),
	array('label'=>'Update Entry', 'icon'=>'pencil', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Remove from Library', 'icon'=>'trash', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Library', 'icon'=>'cog', 'url'=>array('admin')),
	array('label'=>'List Entries', 'icon'=>'th-list', 'url'=>array('index')),
);
?>
<div class="row">
	<div class="span9">
		<div style="padding: 10px;">

<h2>View Entry - <?php echo $model->name; ?></h2>

<?php $this->widget('bootstrap.widgets.TbDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'name',
		'slug',
		array(
			'name'=>'gameId',
			'value'=>CHtml::encode($model->game->name),
		),
		array(
			'name'=>'cabinetId',
			'value'=>CHtml::encode($model->cabinet->name),
		),
		'shelf',
		array(
			'name'=>'parentId',
			'value'=>CHtml::encode($model->getBaseGame()->name),
		),
		'donor',
	),
)); ?>
	</div>
	</div>
	<div class="span3">
	<?php
		$this->beginWidget('zii.widgets.CPortlet', array(
			'title'=>'Administration',
		));
		$this->widget('bootstrap.widgets.TbMenu',array(
			'type'=>'list',
			'items'=>$this->menu,
		));
		$this->endWidget();
	?>
	</div>
</div>